Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cpu pct metric retrieve from query #16332

Merged
merged 4 commits into from
Dec 7, 2023
Merged

Conversation

steveny91
Copy link
Contributor

@steveny91 steveny91 commented Dec 4, 2023

What does this PR do?

Add a new metric from the active_jobs table for the cpu percentage as queried from the table.

A new row will look like this:
('007393', 'QLWISVR', 'ADMIN5', 'QHTTPSVR', 'ACTIVE', 'THDW', 1, Decimal('0.03907496'), Decimal('0.29'), 46622)

Manual check run output:

ibm_i.job.cpu_usage.pct            gauge  1701797610  0            job_active_status:THDW, job_id:007393, job_name:ADMIN5, job_status:ACTIVE, job_user:QLWISVR, subsystem_name:QHTTPSVR 

With Decimal('0.29') being the newly added metric.

Other raw data:

JOB_NAME	         ELAPSED_CPU_PERCENTAGE    ELAPSED_CPU_TIME	   ELAPSED_TIME
2021/APPRELEX/FOO	     2.58	                 13252	          72.974
2567/QUSER/BAZ	                0	                   0	          72.974
4667/SYSADM/BUZ	             2.44	                 12524	          72.974
6641/APPRELEX/BUX	     2.54	                 13049	          72.974
8145/SYSADM/FAX	             2.44	                 12523	          72.974

@ghost ghost added the integration/ibm_i label Dec 4, 2023
Copy link

github-actions bot commented Dec 4, 2023

Test Results

  2 files    2 suites   5s ⏱️
26 tests 26 ✔️ 0 💤 0
27 runs  26 ✔️ 1 💤 0

Results for commit 1e1147e.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Merging #16332 (1e1147e) into master (217245d) will increase coverage by 0.10%.
Report is 19 commits behind head on master.
The diff coverage is n/a.

Additional details and impacted files
Flag Coverage Δ
activemq ?
cassandra ?
confluent_platform ?
hive ?
hivemq ?
ibm_i 81.91% <ø> (ø)
ignite ?
jboss_wildfly ?
kafka ?
presto ?
solr ?
tomcat ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@steveny91 steveny91 marked this pull request as ready for review December 5, 2023 00:33
@steveny91 steveny91 requested a review from a team as a code owner December 5, 2023 00:33
ofek
ofek previously approved these changes Dec 5, 2023
@steveny91 steveny91 merged commit 4f4cf10 into master Dec 7, 2023
36 checks passed
@steveny91 steveny91 deleted the sy/ibm_i-cpu-percentage branch December 7, 2023 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants